<h2><?php echo CHtml::encode(Yii::t('site','Change Application Password')); ?></h2>

<div class="wide form">

    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'user-form',
        'enableAjaxValidation'=>false,
    )); ?>

    <p class="note"><?php echo Yii::t('site','Fields with {marker} are required.',array('{marker}'=>'<span class="required">*</span>')); ?></p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
        <?php echo $form->error($model,'password'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'password2'); ?>
        <?php echo $form->passwordField($model,'password2',array('size'=>60,'maxlength'=>128)); ?>
        <?php echo $form->error($model,'password2'); ?>
    </div>

    <div class="row buttons">
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Change Password'),
				'linkTitle'=>Yii::t('site','Save the changed password'),
				'formID' => 'user-form',
				'buttonType' => 'save'
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Reset'),
				'linkTitle'=>Yii::t('site','Reset the form data'),
				'formID' => 'user-form',
				'buttonType' => 'reset',
				'confirm' => Yii::t('site','Really reset this form?')
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Cancel'),
				'linkTitle'=>Yii::t('site','Cancel changing password, back to settings page'),
				'formID' => 'user-form',
				'buttonType' => 'cancel',
				'confirm' => Yii::t('site','Really cancel changing password?'),
				'url' => array('site/settings')
		)); ?>
    </div>
    <?php $this->endWidget(); ?>

</div><!-- form -->

<script type="text/javascript">
<!--
jQuery('#User_password').focus().select();
// -->
</script>

